package main.java.design.state;

/**
 * <p></p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/26 17:08
 */
public class FearState extends HeroState {
    @Override
    void speedUp() {
        super.gameContext.setHeroState(GameContext.SPEED_UP_STATE);
    }

    @Override
    void slowDown() {
        super.gameContext.setHeroState(GameContext.SLOW_DOWN_STATE);
    }

    @Override
    void vertigo() {
        super.gameContext.setHeroState(GameContext.VERTIGO_STATE);
    }

    @Override
    void fear() {
        System.out.println("英雄被恐惧状态");
    }
}
